package qianting.news.wemedia;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableAsync  //开启异步调用
@EnableScheduling //开启定时任务
@EnableFeignClients(basePackages = {"qianting.news.apis.services"})
@EnableDiscoveryClient
public class WeMediaApplication {

    public static void main(String[] args) {

        SpringApplication.run(WeMediaApplication.class,args);

    }

}
